//
//  LDAddApplicationViewCell.swift
//  DingDongZP
//
//  Created by 三秒文化 on 16/6/24.
//  Copyright © 2016年 51ledian.com. All rights reserved.
//

import UIKit

class LDAddApplicationViewCell: UICollectionViewCell {
    
    
    var leftImgView:UIImageView!
    var rightImgView:UIImageView!
    var titleLab:UILabel!
    var gampView:UIView!
    
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setDefaultContent()
        
    }
    //
    func setDefaultContent() {
        
        backgroundColor = LDGolbalColor.BgGoundGray
        
        leftImgView = UIImageView(image: UIImage(named: "+"))
        rightImgView = UIImageView(image: UIImage(named: "arrows_green"))
        
        titleLab = UILabel.setDetailsLab("添加应用", fontSize: 15, titleColor: LDFontColor.Black, Alignment: .Left)
        
        gampView = UIView()
        gampView.layer.borderWidth = 0.5
        gampView.layer.borderColor = LDLineColorLightGray.CGColor
        
        gampView.backgroundColor = LDGolbalColor.White
        
        addSubview(gampView)
        addSubview(leftImgView)
        addSubview(rightImgView)
        addSubview(titleLab)
        
        
        
        gampView.snp_makeConstraints { (make) in
            
            make.top.equalTo(15)
            make.bottom.equalTo(-15)
            
            make.left.right.equalTo(0)
        }
        
        //
        leftImgView.snp_makeConstraints { (make) in
            
            make.left.equalTo(15)
            make.centerY.equalTo(0)
            make.size.equalTo(CGSizeMake(13, 13))
        }
        
        titleLab.snp_makeConstraints { (make) in
            
            make.left.equalTo(leftImgView.snp_right).offset(10)
            make.centerY.equalTo(0)
        }
        
        rightImgView.snp_makeConstraints { (make) in
            
            make.right.equalTo(-15)
            make.centerY.equalTo(0)
            make.size.equalTo(CGSizeMake(10, 15))
        }
        
    }
     
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
